Integrand size = 28, antiderivative size = 107 \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=-\frac {2 \sqrt {2} a^{3/2} (i A+B) \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a (i A+B) \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3608, 3559, 3561, 212} \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=-\frac {2 \sqrt {2} a^{3/2} (B+i A) \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a (B+i A) \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d} \]
[In]
[Out]
Rule 212
Rule 3559
Rule 3561
Rule 3608
Rubi steps \begin{align*} \text {integral}& = \frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d}-(-A+i B) \int (a+i a \tan (c+d x))^{3/2} \, dx \\ & = \frac {2 a (i A+B) \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d}+(2 a (A-i B)) \int \sqrt {a+i a \tan (c+d x)} \, dx \\ & = \frac {2 a (i A+B) \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d}-\frac {\left (4 a^2 (i A+B)\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d} \\ & = -\frac {2 \sqrt {2} a^{3/2} (i A+B) \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a (i A+B) \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 B (a+i a \tan (c+d x))^{3/2}}{3 d} \\ \end{align*}
Time = 0.56 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.92 \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\frac {-6 i \sqrt {2} a^{3/2} (A-i B) \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )+2 a \sqrt {a+i a \tan (c+d x)} (3 i A+4 B+i B \tan (c+d x))}{3 d} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.93
method | result | size |
derivativedivides | \(\frac {2 i \left (-\frac {i B \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}-i a B \sqrt {a +i a \tan \left (d x +c \right )}+a A \sqrt {a +i a \tan \left (d x +c \right )}-a^{\frac {3}{2}} \left (-i B +A \right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}\) | \(99\) |
default | \(\frac {2 i \left (-\frac {i B \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}-i a B \sqrt {a +i a \tan \left (d x +c \right )}+a A \sqrt {a +i a \tan \left (d x +c \right )}-a^{\frac {3}{2}} \left (-i B +A \right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}\) | \(99\) |
parts | \(\frac {2 i A a \left (\sqrt {a +i a \tan \left (d x +c \right )}-\sqrt {a}\, \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}+\frac {B \left (\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {3}{2}} \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}\) | \(126\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 359 vs. \(2 (82) = 164\).
Time = 0.25 (sec) , antiderivative size = 359, normalized size of antiderivative = 3.36 \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\frac {3 \, \sqrt {2} \sqrt {-\frac {{\left (A^{2} - 2 i \, A B - B^{2}\right )} a^{3}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left ({\left (-i \, A - B\right )} a^{2} e^{\left (i \, d x + i \, c\right )} + \sqrt {-\frac {{\left (A^{2} - 2 i \, A B - B^{2}\right )} a^{3}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{{\left (-i \, A - B\right )} a}\right ) - 3 \, \sqrt {2} \sqrt {-\frac {{\left (A^{2} - 2 i \, A B - B^{2}\right )} a^{3}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left ({\left (-i \, A - B\right )} a^{2} e^{\left (i \, d x + i \, c\right )} - \sqrt {-\frac {{\left (A^{2} - 2 i \, A B - B^{2}\right )} a^{3}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{{\left (-i \, A - B\right )} a}\right ) - 2 \, \sqrt {2} {\left ({\left (-3 i \, A - 5 \, B\right )} a e^{\left (3 i \, d x + 3 i \, c\right )} + 3 \, {\left (-i \, A - B\right )} a e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{3 \, {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
[In]
[Out]
\[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}} \left (A + B \tan {\left (c + d x \right )}\right )\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.04 \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\frac {i \, {\left (3 \, \sqrt {2} {\left (A - i \, B\right )} a^{\frac {5}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) - 2 i \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} B a + 6 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} {\left (A - i \, B\right )} a^{2}\right )}}{3 \, a d} \]
[In]
[Out]
\[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\int { {\left (B \tan \left (d x + c\right ) + A\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Time = 7.87 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.30 \[ \int (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx=\frac {2\,B\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,d}+\frac {A\,a\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}\,2{}\mathrm {i}}{d}+\frac {2\,B\,a\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{d}+\frac {\sqrt {2}\,A\,{\left (-a\right )}^{3/2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {-a}}\right )\,2{}\mathrm {i}}{d}-\frac {2\,\sqrt {2}\,B\,a^{3/2}\,\mathrm {atanh}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {a}}\right )}{d} \]
[In]
[Out]